﻿using System;
using System.Runtime.Serialization;

namespace EvidenceManagement.Model
{
    [DataContract]
    [DbObject(SelectCommandText = "Province_Select"
        , InsertCommandText = "Province_Insert"
        , DeleteCommandText = "Province_Delete"
        , UpdateCommandText = "Province_Update")]
    public class Province:IAuditable
    {
        [DbColumn][DataMember]
        public Guid ProvinceID { get; set; }

        public Country Country { get; set; }

        [DbColumn][DataMember]
        public string Name { get; set; }

        [DbColumn][DataMember]
        public string SystemDescription { get; set; }

        #region IAuditable Members

        [DbColumn][DataMember]
        public Guid CreatedBy
        {
            get;
            set;
        }

        [DbColumn][DataMember]
        public Guid ModifiedBy
        {
            get;
            set;
        }

        public bool IsDeleted
        {
            get;
            set;
        }

        #endregion        
        
    }
}
